Ownership You Can Count On
ثبت نشده
چکیده
While many forms of memory management have been proposed, the only ones to achieve widespread adoption have been explicit deallocation and garbage collection. This leaves programmers requiring explicit control of memory behavior unable to obtain the software engineering and security benefits of programming in a safe language. We present a new approach to memory management called alias counting which combines type-based object ownership and run-time reference counting of references by non-owning (aliasing) pointers. When an owning pointer is destroyed, if the target object's reference count is zero, the object is destroyed; otherwise a run-time error occurs. We have implemented alias counting in a safe C#-like language called Gel. The Gel compiler includes an effective reference count elimination optimization that takes advantage of ownership semantics. Our anecdotal experience in writing the Gel compiler and some smaller benchmarks in Gel is that the annotation requirements and extra programming effort are small, and the type system catches most ownership errors at compile time. Quantitatively, we compare microbenchmarks written in Gel, Java, C#, and C++, and versions of the Gel compiler written in both Gel and C#. In our benchmarks, Gel programs require at most 40% more memory than the corresponding C++ programs, while C# and Java generally require at least twice as much memory and often considerably more. Run-time performance varies considerably across all languages, with no clear winner, but Gel outperforms either C++ or Java/C# in all but one benchmark. Our reference count optimization typically eliminates 90% of all reference counting operations, speeding Gel programs by 20-40%.
منابع مشابه
Manifestation of the Rule of “Who owns you?” and Position of Ethics in Civil Law
Background: The rule "anyone who has the power over things" is one of the legal rules that the jurists of Islam have been referring to for more than a thousand years and it is very useful in trials and even administrative authorities. It is also one of the most important and practical rules in civil and jurisprudential law because it is closely related to confession, which is one of the main...
متن کاملSimplify IT and Reduce TCO: Oracle's End-to-End, Integrated Infrastructure for SAP Data Centers
Over time, IT infrastructures have become increasingly complex and costly to manage and operate. Oracle’s end-to-end, integrated, industry-leading infrastructure solutions for SAP let you simplify your IT environment so you can drive more business value. With a high-performance, robust, open, and flexible SAP infrastructure based on Oracle solutions, you can leverage the power of virtualization...
متن کاملWhy more and more SAP customers are migrating to Solaris
Your SAP environment is critical to business operations. Migrating your SAP systems to Oracle Solaris delivers the availability, performance, scalability, flexibility, and security you need for mission-critical operations, all at a lower total cost of ownership than other UNIX and Linux systems. And, Oracle ACS Lifecycle Migration Services and Oracle Migration Factory help you make the change q...
متن کاملOwnership in Name, But not Necessarily in Action; Comment on “It’s About the Idea Hitting the Bull’s Eye”: How Aid Effectiveness Can Catalyse the Scale-up of Health Innovations”
A recently-published paper by Wickremasinghe et al assesses the scalability of pilot projects in three countries using the aid effectiveness agenda as an analytical framework. The authors report uneven progress and recommend applying aid effectiveness principles to improve the scalability of projects. This commentary focuses on one key principle of aid effectiveness – country ownership; it desc...
متن کاملAn Exploratory Study on the Use of 'I Love You' in the American Context
This study explores the use of the English locution I love you in the American context. The data were collected through a focus discussion group and a survey questionnaire. 120 college undergraduate students from a large public American university participated in the study with 28 attending the focus discussion group and 92 completing the survey questionnaire. The findings indicated th...
متن کامل